package drds.binlog.parse;

import drds.binlog.common.Authors;
import drds.common.Author;

/**
 * 提供mysql heartBeat心跳数据的callback机制
 */
@Author(name = Authors.LI_YANG)
public interface HeartBeatCallback
{

    /**
     * 心跳发送成功
     */
    public void onSuccess(long costTime);

    /**
     * 心跳发送失败
     */
    public void onFailed(Throwable e);

}
